package com.gzyz.drug.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzyz.drug.entity.TianJin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;


@Mapper
public interface TJMapper extends BaseMapper<TianJin>{
    @Select("select * from tianjin where name like'%区' order by id desc limit 20")
    List<TianJin> listOrderByIsLimit20();

    @Select("select * from tianjin order by id desc limit 20")
    List<TianJin> listOrderByIsLimit();
}
